package com.qst.medical.mapper;

import com.qst.medical.domain.DoctorLevel;
import com.qst.medical.domain.TreatType;
import com.qst.medical.entity.DoctorEntity;
import com.qst.medical.model.DoctorLevelModel;
import com.qst.medical.model.DoctorModel;
import com.qst.medical.model.TreatTypeModel;
import com.qst.medical.param.DoctorParam;
import org.springframework.stereotype.Component;

import javax.websocket.server.PathParam;
import java.util.List;

/**
 * 医生数据访问接口
 *
 * @author liulindong
 * @since 2021/8/26 15:16
 */
@Component
public interface DoctorMapper {

    /*获取所有的医师信息*/
    List<DoctorModel> getAllDoctor(DoctorParam param);

    /*新增医师信息*/
    int saveDoctor(DoctorEntity param);

    /*获取所有的医师级别*/
    List<DoctorLevelModel> getAllLevel();

    /*获取所有的诊治类型*/
    List<TreatTypeModel> getAllTreatType();

    /*更新医师信息*/
    int updateDoctor(DoctorEntity param);

    /*根据id删除医师*/
    int deleteDoctorById(Long id);
}